<div class="portal">
    <img src="<?php echo $this->urlbase;?>/public/media/images/pt_logo.png" class="logo" />
    <ul>
        <?php foreach($this->result as $row) { 
            $img = glob('public/upload/catsegmento/'.$row['CTS_ID'].'.*');
            
            $arr_img = array( 
                '1' => '/public/media/images/pt_debranco.png',
                '2' => '/public/media/images/pt_escolar.png',
                '3' => '/public/media/images/pt_esportivo.png',
                '4' => '/public/media/images/pt_profissional.png');
        ?>
        <li class="segmento">
            <a itemid="<?php echo $row['CTS_ID']; ?>" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'escolhe', 'id' => $row['CTS_ID'])); ?>"> 
                <div class="cnt-img<?php echo $row['CTS_ID']; ?>">
                    <div class="cnt-img">
                        <img src="<?php echo $this->urlbase.$arr_img[$row['CTS_ID']];?>" class="imgini" />
                    </div>
                    <div class="cnt-btn">
                       <img src="<?php echo $this->urlbase;?>/public/media/images/icone_seta.png"  /> 
                    </div>
                </div>
                <div class="cnt-img-hover<?php echo $row['CTS_ID']; ?> c-img-h">
                    <div class="cnt-nom seg<?php echo $row['CTS_ID']; ?>"><?php echo $row['CTS_NOM']; ?></div>
                    <img src="<?php echo $this->urlbase.'/';?><?php echo $img[0];?>" />
                </div>
            </a>
        </li>
        <?php } ?>
    </ul>
    
    <div class="cnt-endereco">
        <a href="https://www.facebook.com/Dmarcouniformes" target="_blank">  
            <img src="<?php echo $this->urlbase;?>/public/media/images/pt_facebook.png" class="facebook" />
        </a>
        <div class="endereco">
            54 <span>3312 4766</span><br>
            Rua 10 de abril, 75<br>
            Passo Fundo/RS
        </div>
    </div>
</div>